<?php



class MlmPipsRebateMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.MlmPipsRebateMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('mlm_pips_rebate');
		$tMap->setPhpName('MlmPipsRebate');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('REBATE_ID', 'RebateId', 'string', CreoleTypes::BIGINT, true, null);

		$tMap->addColumn('AMOUNT', 'Amount', 'double', CreoleTypes::DOUBLE, false, null);

		$tMap->addColumn('DETAIL_LINK', 'DetailLink', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('PACKAGE_NAME', 'PackageName', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('PIPS_REBATE', 'PipsRebate', 'double', CreoleTypes::DOUBLE, false, null);

		$tMap->addColumn('DIST_CODE', 'DistCode', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('FULLNAME', 'Fullname', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('VOLUME', 'Volume', 'double', CreoleTypes::DOUBLE, false, null);

		$tMap->addColumn('DIST_ID', 'DistId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('PIPS_DATE', 'PipsDate', 'int', CreoleTypes::TIMESTAMP, true, null);

		$tMap->addColumn('CREATED_BY', 'CreatedBy', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('CREATED_ON', 'CreatedOn', 'int', CreoleTypes::TIMESTAMP, true, null);

		$tMap->addColumn('UPDATED_BY', 'UpdatedBy', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('UPDATED_ON', 'UpdatedOn', 'int', CreoleTypes::TIMESTAMP, true, null);

	} 
} 